package com.charmzenus.smallshop.bean;


import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Entity
@Table(name = "hl_user")
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
public class UserBean {

    @Id
    private int id;

    private String username;
    private String password;
    private String email;
    private String mobile;
    private String nick_name;
    private int sex;
    private int birthday;
    private String avatar;
    private String autograph;
    private String qq_openid;
    private String wx_openid;
    private String is_delete;
    private int created_at;
    private int updated_at;


    public UserBean() {
    }

    public UserBean(String username,
                    String password,
                    String email,
                    String mobile,
                    String nick_name,
                    int sex,
                    int birthday,
                    String avatar,
                    String autograph,
                    String qq_openid,
                    String wx_openid,
                    String is_delete,
                    int created_at,
                    int updated_at) {
        this.username = username;
        this.password = password;
        this.email = email;
        this.mobile = mobile;
        this.nick_name = nick_name;
        this.sex = sex;
        this.birthday = birthday;
        this.avatar = avatar;
        this.autograph = autograph;
        this.qq_openid = qq_openid;
        this.wx_openid = wx_openid;
        this.is_delete = is_delete;
        this.created_at = created_at;
        this.updated_at = updated_at;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getNick_name() {
        return nick_name;
    }

    public void setNick_name(String nick_name) {
        this.nick_name = nick_name;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public int getBirthday() {
        return birthday;
    }

    public void setBirthday(int birthday) {
        this.birthday = birthday;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getAutograph() {
        return autograph;
    }

    public void setAutograph(String autograph) {
        this.autograph = autograph;
    }

    public String getQq_openid() {
        return qq_openid;
    }

    public void setQq_openid(String qq_openid) {
        this.qq_openid = qq_openid;
    }

    public String getWx_openid() {
        return wx_openid;
    }

    public void setWx_openid(String wx_openid) {
        this.wx_openid = wx_openid;
    }

    public String getIs_delete() {
        return is_delete;
    }

    public void setIs_delete(String is_delete) {
        this.is_delete = is_delete;
    }

    public int getCreated_at() {
        return created_at;
    }

    public void setCreated_at(int created_at) {
        this.created_at = created_at;
    }

    public int getUpdated_at() {
        return updated_at;
    }

    public void setUpdated_at(int updated_at) {
        this.updated_at = updated_at;
    }
}
